getOption

fun <K, A> Map<K, A>.getOption(k: K): Option<A>(source)

Extension function to get an Option from a nullable object on a map.